﻿using System;
using System.Collections.Generic;


class Program
{
    static void Main()
    {
        List<Customer> customers = new List<Customer>();
        customers.Add(new Individual(50, "Valeri", "m"));
        customers.Add(new Individual(22, "Vasil", "m"));
        customers.Add(new Companie("Valeri OOD", 5555));
        customers.Add(new Companie("Vasil OOD", 3333));
        customers.Add(new Companie("Aksel OOD", 9999));
        List<Account> accounts = new List<Account>();
        accounts.Add(new DepostiAccount(customers[0], 1111, 0.5m, 5));
        accounts.Add(new DepostiAccount(customers[1], 5555, 0.1m, 5));
        accounts.Add(new DepostiAccount(customers[2], 9999, 0.9m, 5));
        accounts.Add(new Loan(customers[3], 1111, 0.5m, 9));
        accounts.Add(new Mortgage(customers[4], 5555, 0.5m, 9));
        foreach (var account in accounts)
        {
            Console.WriteLine(account.CalculateInterest());
            account.Deposit(1111);
            if (account is DepostiAccount)
            {
                account.Drow(111);
                Console.WriteLine("DROW");
            }
        }

    }
}